package com.ruoyi.pos.domain.dto.device.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 设备调试指令请求DTO
 * 
 * @author ruoyi
 * @date 2025-01-30
 */
@Data
@ApiModel(description = "设备调试指令请求")
public class DeviceDebugCommandRequest {

    @ApiModelProperty(value = "设备ID", required = true)
    @NotNull(message = "设备ID不能为空")
    private Long deviceId;

    @ApiModelProperty(value = "调试指令", required = true)
    @NotBlank(message = "调试指令不能为空")
    private String command;

    @ApiModelProperty(value = "指令类型", allowableValues = "INFO,CONFIG,STATUS,LOG,RESET,CUSTOM")
    private String commandType;

    @ApiModelProperty(value = "指令参数")
    private String parameters;

    @ApiModelProperty(value = "发送者")
    private String sender;

    @ApiModelProperty(value = "备注")
    private String remark;
}
